import Vue from 'vue'
import router from './router'
import NProgress from 'nprogress' // progress bar
import 'nprogress/nprogress.css' // progress bar style
import { Button, Layout, Menu, Icon } from 'ant-design-vue';
import App from './App.vue'
// NProgress.configure({ showSpinner: false }) // NProgress Configuration
Vue.use(Button);
Vue.use(Layout);
Vue.use(Menu);
Vue.use(Icon);
Vue.config.productionTip = false;
// router.beforeEach(() => {
//   NProgress.start() // start progress bar
// })

// router.afterEach(() => {
//   NProgress.done() // finish progress bar
// })
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
